package org.itsolutions.javaBackup.spi.common.io;

/**
 * 
 * @author Tomas Fecko
 */
public interface IBufferListener {

	/**
	 * Method is called, when buffer is full.
	 * @param pBufferSize buffer size
	 * @param pRemainingSize remaining size
	 */
	void bufferFull(int pBufferSize, int pRemainingSize);
	
	
	/**
	 * Method is called, when half of the buffer is reached (buffer is full at 50%).
	 * @param pBufferSize buffer size
	 * @param pRemainingSize remaining size
	 */
	void bufferHalfFull(int pBufferSize, int pRemainingSize);
	
	/**
	 * Method is called, when buffer is full at 90%.
	 * @param pBufferSize buffer size
	 * @param pRemainingSize remaining size
	 */
	void bufferAlmostFull(int pBufferSize, int pRemainingSize);
}







